<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
  <title><?php echo $title;?></title>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="<?=base_url()?>css/templatemo_main.css">
  <link rel="stylesheet" href="<?=base_url()?>css/jquery-ui.min.css" />
  <link rel="stylesheet" href="<?=base_url()?>css/main.css?v=1.1" />
  <link rel="stylesheet" href="<?=base_url()?>font2/iconfont.css?v=1.1" />
  <script src="<?=base_url()?>js/jquery.min.js"></script>
  <script src="<?=base_url()?>js/timepicker.js"></script>
  <script src="<?=base_url()?>js/jquery.ajaxfileupload.js"></script>
  <script src="<?=base_url()?>js/bootstrap.min.js"></script>
  <script src="<?=base_url()?>js/Chart.min.js"></script>
  <script src="<?=base_url()?>js/templatemo_script.js"></script>
  <script src="<?=base_url()?>js/jquery-ui.min.js"></script>
  <script src="<?=base_url()?>js/main.js"></script>

  <style media="screen">
    input[type="text"], .input{
      height: 34px;
      border-radius:1px !important;
      padding: 6px 12px;
      font-size: 14px;
      line-height: 1.42857143;
      color: #555;
      background-color: #fff;
      background-image: none;
      border: 1px solid #ccc;
      border-radius: 4px;
      -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
      box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    }

    /*表单排序*/
    .table-sort{
      cursor: pointer;
    }
    .table-sort:after{
      content: '↕'
    }
    .table-sort-up:after{
      content: '↕'
    }

    .table-sort-down:after{
      content: '↓'
    }
  </style>
</head>
<body>
	<div class="navbar navbar-inverse" role="navigation">
      <div class="navbar-header" style="width:100%;">
        <div class="logo navbar-left">
        <h1 style="font-size:16px;line-height:50px;margin:0;text-align:center;width:160px;background:#3780C4;color:#DAEDF8;"><?=SYSTEM_NAME?></h1></div>

        <ul class="nav navbar-nav navbar-right" style="float:right">

          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color:#fff">打印控件下载<span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><a href="<?=base_url()?>/download/install_lodop32.zip"><i  class="icon iconfont icon-xiazaidaoru icon-light"></i> 32位下载</a></li>
              <li><a href="<?=base_url()?>/download/install_lodop64.zip"><i  class="icon iconfont icon-xiazaidaoru icon-light"></i> 64位下载</a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color:#fff"><?=$this->session->userdata('name')?> <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><a href="<?=site_url()?>/passport/logout"><i  class="icon iconfont icon-xianghujiaohuan icon-light"></i> 退出登录</a></li>
            </ul>
          </li>
        </ul>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
      </div>
    </div>
    <div class="template-page-wrapper">
      <div class="navbar-collapse collapse templatemo-sidebar" style="height:100% !important;">
        <ul class="templatemo-sidebar-menu">
          <li class="<?php echo $this->uri->segment(1) == 'order' ?'active':'';?>"><a href="<?=site_url()?>/order/index"><i class="icon iconfont icon-searchlist"></i> 订单管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'product' ?'active':'';?>"><a href="<?=site_url()?>/product/index"><i class="icon iconfont icon-cart"></i> 商品管理</a></li>
           <!--<li class="<?php echo $this->uri->segment(1) == 'material' ?'active':'';?>"><a href="<?=site_url()?>/material/index"><i class="icon iconfont icon-apps"></i> 配方管理</a></li>-->
          <li class="<?php echo $this->uri->segment(1) == 'nutrition' ?'active':'';?>"><a href="<?=site_url()?>/nutrition/index"><i class="icon iconfont icon-apps"></i> 配方管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'category' ?'active':'';?>"><a href="<?=site_url()?>/category/index"><i class="icon iconfont icon-sort"></i> 分类管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'user' ?'active':'';?>"><a href="<?=site_url()?>/user/index"><i class="icon iconfont icon-people"></i> 用户管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'school' ?'active':'';?>"><a href="<?=site_url()?>/school/index"><i class="icon iconfont icon-write"></i> 学校管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'message' ?'active':'';?>"><a href="<?=site_url()?>/message/index"><i class="icon iconfont icon-warnfill"></i> 通知管理</a></li>

          <li class="<?php echo $this->uri->segment(1) == 'comment' ?'active':'';?>"><a href="<?=site_url()?>/comment/index"><i class="icon iconfont icon-messagefill"></i> 评论管理</a></li>
          <li class="<?php echo $this->uri->segment(1) == 'admin' ?'active':'';?>"><a href="<?=site_url()?>/admin/index"><i class="icon iconfont icon-safe"></i> 管理员管理</a></li>
          <!--<li class="<?php echo $this->uri->segment(1) == 'orderdate' ?'active':'';?>"><a href="<?=site_url()?>/orderdate/index"><i class="icon iconfont icon-safe"></i> 下单日期管理</a></li>-->
          <!--<li class="<?php echo $this->uri->segment(1) == 'admin' ?'active':'';?>"><a href="<?=site_url()?>/admin/index"><i class="icon iconfont icon-safe"></i> 管理员管理</a></li>-->
          <li><a href="<?=site_url()?>/passport/logout"><i class="icon iconfont icon-forward"></i>退出登陆</a></li>
           <!--<li class="sub open">
            <a href="javascript:;">
              <i class="fa fa-database"></i> Nested Menu <div class="pull-right"><span class="caret"></span></div>
            </a>
            <ul class="templatemo-submenu">
              <li><a href="#">Aenean</a></li>
              <li><a href="#">Pellentesque</a></li>
              <li><a href="#">Congue</a></li>
              <li><a href="#">Interdum</a></li>
              <li><a href="#">Facilisi</a></li>
            </ul>
          </li>-->
        </ul>
      </div><!--/.navbar-collapse -->


      <!--代替原生Alert-->
    <div class="modal fade" id="alert" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">
          <div id="alert-content" style="padding:20px;font-size:15px;">
          </div>
          <div class="" style="padding:0 10px 10px 10px;text-align:right">
            <button type="button" class="btn btn-primary" id="alert-ok">确 定</button>
          </div>
        </div>
      </div>
    </div>

    <!--代替原生confirm-->
    <div class="modal fade" id="confirm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">
          <div id="confirm-content" style="padding:20px;font-size:15px;">
          </div>
          <div class="" style="padding:0 10px 10px 10px;text-align:right">
            <button type="button" class="btn btn-default" id="confirm-no">取 消</button>
            <button type="button" class="btn btn-primary" id="confirm-ok">确 定</button>
          </div>
        </div>
      </div>
    </div>
